package com.jfinal.aceadmin.vo;

import java.io.File;

import com.jfinal.aceadmin.util.StringUtil;
import com.jfinal.plugin.activerecord.Page;

public class InboxVo {

	private int unreadEmails;
	private Page<EmailSimpleVo> pageResult;
	public int getUnreadEmails() {
		return unreadEmails;
	}
	public void setUnreadEmails(int unreadEmails) {
		this.unreadEmails = unreadEmails;
	}
	public Page<EmailSimpleVo> getPageResult() {
		return pageResult;
	}
	public void setPageResult(Page<EmailSimpleVo> pageResult) {
		this.pageResult = pageResult;
	}
	@Override
	public String toString() {
		return "InboxVo [unreadEmails=" + unreadEmails + ", pageResult="
				+ pageResult + "]";
	}
	
	public static void main(String[] args) {
		File file = new File("E:/data/staticroot/uploadfiles/icon/03be63e5-f82d-41f0-a456-bf2446123d99.jpeg");	
		System.out.println(file.length());
		System.out.println(StringUtil.getFormatSize(file.length()));
	}
	
}
